package com.cinc.mdm.modules.processRoute.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cinc.mdm.modules.processRoute.entity.MdmProcessRoute;
import com.cinc.mdm.modules.processRoute.mapper.MdmProcessRouteDetailMapper;
import com.cinc.mdm.modules.processRoute.mapper.MdmProcessRouteMapper;
import com.cinc.mdm.modules.processRoute.model.MdmProcessRouteDetailModel;
import com.cinc.mdm.modules.processRoute.service.IMdmProcessRouteService;
import com.cinc.mdm.modules.processRoute.vo.MdmProcessRouteDetailPage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: 工艺物料
 * @Author: jeecg-boot
 * @Date: 2022-07-21
 * @Version: V1.0
 */
@Service
public class MdmProcessRouteServiceImpl extends ServiceImpl<MdmProcessRouteMapper, MdmProcessRoute> implements IMdmProcessRouteService {

    @Autowired
    private MdmProcessRouteDetailMapper mdmProcessRouteDetailMapper;

    @Override
    public void detaiPage(Page<MdmProcessRouteDetailModel> page, MdmProcessRouteDetailPage detailPage) {
        page.setRecords(mdmProcessRouteDetailMapper.selectDetailList(page, detailPage));
    }

}
